package com.java.io;

import java.io.File;
import java.io.IOException;

public class FileClient {
	public static void main(String[] args) throws IOException {
		createFile();
	}

	public static void createFile() throws IOException {
		//在项目文件夹下（E:\code\charmander）生成文件
		//File file = new File("file.txt");
		File file = new File("d:/","/file.txt");
		file.createNewFile();

	}

	public static void separator(){
		System.out.println(File.pathSeparator);
		System.out.println(File.pathSeparatorChar);
		System.out.println(File.separator);
		System.out.println(File.separatorChar);

	}
}
